package windows;

import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JTextArea;




public class ManageRecipeShow extends JPanel implements ActionListener
{


	/**
	 *
	 */
	private static final long serialVersionUID = 1L;
	private JButton btnsearch;

	private JLabel lblNameRecipe;
	private JLabel lblCodRecipe;
	private JLabel lbltEgg;
	private JLabel lbtFlour;
	private JLabel lblSugar;
	private JLabel lblMilk;
	private JLabel lblColoring;
	private JLabel lblSabor;
	private JLabel lblStraberry;
	private JLabel lblRaisin;
	private JLabel lblAmount;

	private JTextArea txtNameRecipe;
	private JTextArea txtCodRecipe;

	private JRadioButton rdoEgg;
	private JRadioButton rdoFlour;
	private JRadioButton rdoSugar;
	private JRadioButton rdoMilk;
	private JRadioButton rdoColoring;
	private JRadioButton rdoSabor;
	private JRadioButton rdoStraberry;
	private JRadioButton rdoRaisin;

	private JTextArea txtEgg;
	private JTextArea txtFlour;
	private JTextArea txtSugar;
	private JTextArea txtMilk;
	private JTextArea txtColoring;
	private JTextArea txtSabor;
	private JTextArea txtstraberry;
	private JTextArea txtRaisin;


	public ManageRecipeShow()
	{
		// TODO Auto-generated constructor stub

		setLayout(null);

		rdoEgg=new JRadioButton();
		rdoEgg.setBounds(230,155, 40, 20);
		rdoEgg.addActionListener(this);
		rdoEgg.setEnabled(false);
		add(rdoEgg);

		rdoFlour=new JRadioButton();
		rdoFlour.setBounds(230,365, 40, 20);
		rdoFlour.addActionListener(this);
		rdoFlour.setEnabled(false);
		add(rdoFlour);

		rdoSugar=new JRadioButton();
		rdoSugar.setBounds(230,120, 40, 20);
		rdoSugar.addActionListener(this);
		rdoSugar.setEnabled(false);
		add(rdoSugar);

		rdoMilk=new JRadioButton();
		rdoMilk.setBounds(230,225, 40, 20);
		rdoMilk.addActionListener(this);
		rdoMilk.setEnabled(false);
		add(rdoMilk);

		rdoColoring=new JRadioButton();
		rdoColoring.setBounds(230,260, 40, 20);
		rdoColoring.addActionListener(this);
		rdoColoring.setEnabled(false);
		add(rdoColoring);

		rdoSabor=new JRadioButton();
		rdoSabor.setBounds(230,190, 40, 20);
		rdoSabor.addActionListener(this);
		rdoSabor.setEnabled(false);
		add(rdoSabor);

		rdoStraberry=new JRadioButton();
		rdoStraberry.setBounds(230,295, 40, 20);
		rdoStraberry.addActionListener(this);
		rdoStraberry.setEnabled(false);
		add(rdoStraberry);

		rdoRaisin=new JRadioButton();
		rdoRaisin.setBounds(230,330, 40, 20);
		rdoRaisin.addActionListener(this);
		rdoRaisin.setEnabled(false);
		add(rdoRaisin);



		/***************************JButton************<code>true</code>**************************/
	
		btnsearch = new JButton("Buscar");
		btnsearch.setBounds(370,15, 100, 20);
		btnsearch.addActionListener(this);
		add(btnsearch);
	
		/*********************************JSpinner***********************************************/

		txtEgg=new JTextArea();
		txtEgg.setBounds(300, 155, 40, 25);
		txtEgg.setEnabled(false);
		add(txtEgg);

		txtFlour=new JTextArea();
		txtFlour.setBounds(300, 365, 40, 25);
		txtFlour.setEnabled(false);
		add(txtFlour);

		txtSugar=new JTextArea();
		txtSugar.setBounds(300, 120, 40, 25);
		txtSugar.setEnabled(false);
		add(txtSugar);

		txtMilk=new JTextArea();
		txtMilk.setBounds(300, 225, 40, 25);
		txtMilk.setEnabled(false);
		add(txtMilk);

		txtColoring=new JTextArea();
		txtColoring.setBounds(300, 260, 40, 25);
		txtColoring.setEnabled(false);
		add(txtColoring);

		txtSabor=new JTextArea();
		txtSabor.setBounds(300,190, 40, 25);
		txtSabor.setEnabled(false);
		add(txtSabor);

		txtstraberry=new JTextArea();
		txtstraberry.setBounds(300, 295, 40, 25);
		txtstraberry.setEnabled(false);
		add(txtstraberry);

		txtRaisin=new JTextArea();
		txtRaisin.setBounds(300, 330, 40, 25);
		txtRaisin.setEnabled(false);
		add(txtRaisin);


	    /******************************JLabel**********************************/
		lblAmount=new JLabel ("Cantidad gramos");
		lblAmount.setBounds(280, 85, 165, 25);
		add(lblAmount);

		lblCodRecipe=new JLabel("Codigo Receta:");
		lblCodRecipe.setBounds(50, 15, 150, 25);
		add(lblCodRecipe);

		lblNameRecipe = new JLabel("Nombre Receta:");
		lblNameRecipe.setBounds(50, 50, 150, 25);
		add(lblNameRecipe);

		lbtFlour = new JLabel("Harina:");
		lbtFlour.setBounds(50, 365, 150, 25);
		add(lbtFlour);

		lblSugar = new JLabel("Azucar:");
		lblSugar.setBounds(50, 120, 150, 25);
		add(lblSugar);

		lbltEgg=new JLabel("Huevos");
		lbltEgg.setBounds(50, 155, 150, 25);
		add(lbltEgg);

		lblSabor=new JLabel("Saborizantes");
		lblSabor.setBounds(50, 190, 150, 25);
		add(lblSabor);

		lblMilk=new JLabel("Leche:");
		lblMilk.setBounds(50, 225, 150, 25);
		add(lblMilk);

		lblColoring=new JLabel("Colorantes:");
		lblColoring.setBounds(50, 260, 150, 25);
		add(lblColoring);

		lblStraberry=new JLabel("Fresas:");
		lblStraberry.setBounds(50, 295, 150, 25);
		add(lblStraberry);

		lblRaisin=new JLabel("Uvas Pasas:");
		lblRaisin.setBounds(50, 330, 150, 25);
		add(lblRaisin);

		/****************************JTextArea*************************************/
		txtNameRecipe = new JTextArea();
		txtNameRecipe.setEditable(false);
		txtNameRecipe.setBounds(200, 50, 150, 20);
		add(txtNameRecipe);

		txtCodRecipe = new JTextArea();
		txtCodRecipe.setBounds(200, 15, 150, 20);
		add(txtCodRecipe);


		/*******************************************************/


		Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
		setBounds((screenSize.width-664)/2, (screenSize.height-456)/2, 670, 310);
	}
	


	public void actionPerformed(ActionEvent e)
	{
		
		if(e.getSource()==btnsearch)
		{
		
		}
				
	}


}
